import QtQuick 2.12
import QtQuick.Controls 2.5


Button
{
    property alias btnText:name.text

    property alias btnWidth:self.width
    property alias btnHeight:self.height

    property alias isCheckable: self.checkable
    property alias isChecked: self.checked

    id:self

    Text
    {
        id:name
        text: qsTr(btnText)
        color: self.down||(self.checkable&&self.checked)?"#ee000000":"#eeffffff"
        font.family: window.m_FONT_FAMLIY
        font.pointSize: 16
        anchors.centerIn: parent
    }

    background: Rectangle
    {
        implicitHeight:self.height
        implicitWidth:self.width
        color:self.down||(self.checkable&&self.checked)?"#55555555":"#51119999"
        radius:3
    }
    width:50
    height: 50
    checkable: false
    checked: false
}
